home *** CD-ROM | disk | FTP | other *** search
Turbo C Context File | 1991-05-31 | 5.1 KB | 196 lines |
- Turbo C Context File
- ..\LIB\CS.LIB
- ..\LIB\OVERLAY.LIB
- ..\LIB\MATHS.LIB
- ..\LIB\EMU.LIB
- ..\LIB\C_JOY.C
- GRUNDA.C
- ..\LIB\C0S.OBJ
- C:\TC\USER
- C:\TC\USER\*.OBJ
- C:\TC\USER\*.EXE
- C:\TC\USER\*.*
- C:\TC\USER\*.C
- B:\*.C
- C:\TC\BIN\*.CPP
- C:\TC\EXAMPLES\*.C
- C:\TC\*.C
- C:\TC\BIN\*.C
- C:\TC\BIN\GR.BAK
- void *.c
- void *.c
- FIDRQQ
- keymin
- while
- lever
- (void)
- C:\TC\LIB\MOUSE.LIB
- C:\TC\LIB\*.C
- C:\TC\LIB\*.OBJ
- C:\TC\LIB\*.LIB
- C:\TC\BIN\NONAME00.C
- C:\TC\BIN\GRUNDA.C
- C:\TC\BIN\MAZE.C
- C:\TC\EXAMPLES\PLANETS.C
- C:\TC\BIN\MAZE.C
- C:\TC\BIN\GRAHICS.C
- C:\TC\MOUSERTN.C
- C:\TC\BIN\TEXTCA.C
- C:\TC\BIN\GRAHICS.C
- C:\TC\BIN\GRAHICS.C
- C:\TC\BIN\MOUSE.C
- C:\TC\BIN\JOYSTICK.C
- C:\TC\C_JOY.C
- C:\TC\C_JOY.C
- C:\TC\BIN\GRUNDA.C
- C:\TC\BIN\GRUNDA.C
- if ((x==a) && (y==b)) {
- end();
- if (x > 21) {
- x=21;}
- if (x < 03) {
- x=3;}
- if (y < 02) {
- y=2;}
- if (y > 80) {
- y = 80;}
- ym = 0;
- xm = 0;
- || ((x == 5) && (y != 23)))
- if (((x == 5) && (y == 2)) || ((x == 5) && (y == 23)))
- x = x;
- if ((x == 5) && (y != 23))
- x = x - xm;
- if (x == 5) {
- if ((y != 2) && (y != 23))
- x = x - xm;
- if (x == 5) {
- if ((y != 2) && (y != 23))
- x = x - xm;
- gotoxy(x,y);
- putchar(' ');
- x = x + xm;
- y = y + ym;
- if (x > 79) {
- x=79;}
- if (x < 01) {
- x=1;}
- if (y < 02) {
- y=2;}
- if (y > 23) {
- y = 23;}
- if (x == 5) {
- if ((y != 2) && (y != 23)){
- x = x - xm;
- y = y - ym;}
- if (x == 76) {
- if ((y != 2) && (y != 23)){
- x = x - xm;
- y = y - ym;}
- ym = 0;
- xm = 0;
- gotoxy(x,y);
- putchar(H);
- return;
- if (hm != 1) {
- for (p = 0; p < 1000; p++);}
- init();
- title();
- input();
- roll();
- results();
- printf("Do you wish to run this program again? y/n\n");
- rep=toupper(getch());
- switch(rep){
- case 'Y': main();
- case 'N': printf("Thank you for your participation. Goodbye.\n");
- getch();
- default:printf("Wrong!\n");
- if ((iii==1) && (maze[i][ii][0]==0)
- {
- rectangle(i*59,(ii-1)*59,(i+1)*59,ii*59);
- if ((y+p)>24)
- p=4;
- do {
- button=get_joy_button(0);
- } while (button!=1);
- for (p=0;p<65000;p++);
- if ((b==22) || (b==3)){
- b=b-bm;
- /* if ((a==5) || (a==76))
- if (b == 3)
- b=b-bm;
- a=a-am;
- if (b == 22)
- b=b-bm;
- a=a-am;
- #include <stdio.h>
- #include <stdlib.h>
- gotoxy(10,8);
- puts("What Speed would you like to play at? (1=fast, 2=slow)");
- while (s==0)
- c=getch();
- if (c=='\0'){
- c=getch();}
- switch(c){
- case 49: s=1;
- wait=40000;
- break;
- case 50: s=2;
- wait=80000;
- break;
- default: putchar('\a');
- }
- x=1;
- level++;
- gotoxy(40,13);
- printf("%d", level);
- echs=random(60)
- why=random(20)
- echs=echs+10
- why=why+2
- gotxy(echs,why);
- putchar(K);
- echs=random(60);
- why=random(20);
- echs=echs+10;
- why=why+2;
- gotoxy(echs,why);
- putchar(K);
- if (level==0)
- if ((x == echs) && (y == why))
- lever=1;
- if (echs==40)
- echs=echs+1;
- if (why==13)
- why=why+1;
- int keymin=0;
- int keymax=0;
- int joymin=0;
- int joymax=0;
- int joy=0;
- int key=0;
- if (hm != 1) {
- for (p = 0; p < 50; p++) {
- if (kbhit()) {
- p = 50;
- }
- }
- char hm=0; /* Human Moved Flag Variable */
- case 49: s=1;
- wait=40000;
- spd=10;
- break;
- case 50: s=2;
- wait=80000;
- spd=50;
- break;
- gotoxy(8,8);
- puts("What Speed would you like to play at? (1<fastest> to 9<slowest>)");
- while (spd==0)
- c=getch();
- if (c=='\0'){
- c=getch();}
- switch(c){
- unsigned long p=0; /* counter variable for wait loop */
-